<?php echo $left ?>
<script>
$( document ).ready(function() {
	$.ajaxSetup({
		cache: false
	});
	$( '.sidebar' ).simpleSidebar({
		settings: {
			opener: '#open-sb',
			wrapper: '.wrapper',
			animation: {
				duration:0,
				easing: 'easeOutQuint'
			}
		},
		sidebar: {
			align: 'left',
			width: 214,
			closingLinks: 'a',
		}
	});
});
</script>

<div class="clear"></div>
<div  class="w640">
      <div class="yd"><span class="ydtxt">公益个人中心</span> - 个人资料</div>
      <table class="biao">
      <?php echo form_open('mobile/userinfo/info_post', array('id' => 'myform')); ?>
	     <tr>
		    <td class="w140">公益账号<span class="red">*</span></td>
           <td><input type="text" readonly  value="<?=$user['user_account'] ?>"  class="input1"/><b></b></td>
		 </tr>
		 <tr>
		    <td class="w140">公益推广人<span class="red">*</span></td>
	        <td><input type="text" readonly value="<?=$user['up_account']?>" class="input1" /><b></b></td>
		 </tr>
		 <tr>
		    <td class="w140">姓名<span class="red">*</span></td>
	        <td><input readonly id="user_name" name="user_name" value="<?=$user['user_name']?>" type="text" class="input1" /><b></b></td>
		 </tr>
		 <tr>
		    <td class="w140">手机号码<span class="red">*</span></td>
	        <td><input type="text" readonly id="mobile" name="mobile"  value="<?=$user['mobile']?>" class="input1"/><b></b></td>
		 </tr>
		 <tr>
		    <td class="w140">支付宝<span class="red">*</span></td>
	        <td><input type="text" readonly id="zfb_account" name="zfb_account" value="<?=$user['zfb_account']?>" class="input1"/><b></b></td>
		 </tr>
		 <tr>
		    <td class="w140"><span class="spans">开户行</span></td>
	        <td><input type="text" id="bank_name" name="bank_name" value="<?=$user['bank_name']?>" class="input1"/><b></b></td>
		 </tr>
		 <tr>
		    <td class="w140"><span class="spans">银行卡号</span></td>
	        <td><input id="bank_card" name="bank_card" value="<?=$user['bank_card']?>" type="text" class="input1" /><b></b></td>
		 </tr>
		 <tr>
		    <td class="w140"><span class="spans">微信号</span></td>
	        <td><input id="wx_id" name="wx_id" value="<?=$user['wx_id']?>" type="text"  class="input1"/><b></b></td>
		 </tr>
		 <tr>
		    <td class="w140"><span class="spans">二级密码</span></td>
	        <td><input id="spwd" name="spwd" type="password"  class="input1"/><b></b></td>
		 </tr>
		 <tr>
		    <td colspan="2" >
		        <div class="inp360"><input id="btn_update" type="submit" class="inputt" value="确认提交"></div>
	       </td>
         </tr>
      </form>
	  </table>
</div>
<script type="text/javascript">
$("input").focus(function(){
	$(this).next("b").html("");
});
$('#btn_update').on('click', function(event) {
	if($('#user').val() == ''){
		$('#user').siblings().html('请输入姓名');
		return false;
	}

	var reg = /^\d{11}$/;
	if(!reg.test($('#mobile').val())){
		$('#mobile').siblings().html('请输入正确的手机号');
		return false;
	}


	if($('#zfb_account').val() == ''){
		$('#zfb_account').siblings().html('请输入支付宝账号');
		return false;
	}

	if($('#spwd').val() == ''){
		$('#spwd').siblings().html('请输入二级密码');
		return false;
	}

	$('#myform').submit();

});
</script>
<?php echo $foot ?>